package mianxiangduixiang.Week8.Exam4;

import mianxiangduixiang.Week8.Exam1.Point;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class Circle implements Shape {
    private Point point;
    private int radius;

    public Circle() {
    }

    public Circle(Point point, int radius) {
        this.point = point;
        this.radius = radius;
    }

    @Override
    public int getArea() {
        return ((int) 3.14 * radius * radius);
    }

    @Override
    public int getC() {
        return (int) (2 * 3.14 * radius);
    }
}
